package com.ym.b2b.user.service;

import com.ym.b2b.commons.conf.AgentToken;
import com.ym.b2b.commons.exception.BaseException;
import com.ym.b2b.user.sqlbean.AgentBuyer;
import com.ym.b2b.user.sqlbean.AgentProvider;
import com.zc.commons.base.Page;
import com.zc.commons.base.Result;

public interface AgentUserService {

    // public Page<AgentBuyer> searchPageAgentBuyer(AgentBuyer agentBuyer, Page<AgentBuyer> page) throws BaseException;

    public Page<AgentBuyer> searchPageAgentBuyerList(AgentBuyer agentBuyer, Page<AgentBuyer> page) throws BaseException;

    Result doAgentBuyer(String code, AgentToken agentToken) throws BaseException;

    public Page<AgentProvider> searchPageAgentProviderList(AgentProvider agentProvider, Page<AgentProvider> page)
                                                                                                                 throws BaseException;

    Result doAgentProvider(String code, AgentToken agentToken) throws BaseException;
}
